package com.koo.modules.cx.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.koo.common.base.entity.BaseEntity;
import com.koo.common.base.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 门店销售数据上传
 *
 * @author charlin
 * @email 136137465@qq.com
 * @date 2023-01-05 16:11:44
 */
@Data
@ApiModel("门店销售数据上传")
@TableName("cx_upload_sales_data")
public class CxUploadSalesDataEntity extends CommonEntity {
    private static final long serialVersionUID = 1L;


    @ExcelIgnore
    @TableId
    private Long saleOrderId;


    @ColumnWidth(11)
    @ExcelProperty("单据类别:0销售出库1销售退货")
    @ApiModelProperty(value = "单据类别:0销售出库1销售退货")
    private Integer saleOrderType;

    @ColumnWidth(11)
    @ExcelProperty("销售单号")
    @ApiModelProperty(value = "销售单号")
    private String saleOrderNo;

    @ColumnWidth(11)
    @ExcelProperty("销售日期")
    @ApiModelProperty(value = "销售日期")
    private Date saleDate;

    @ColumnWidth(11)
    @ExcelProperty("会员编号")
    @ApiModelProperty(value = "会员编号")
    private String memberNo;

    @ColumnWidth(11)
    @ExcelProperty("会员姓名")
    @ApiModelProperty(value = "会员姓名")
    private String memberName;

    @ColumnWidth(11)
    @ExcelProperty("会员身份证号")
    @ApiModelProperty(value = "会员身份证号")
    private String memberCardNo;

    @ColumnWidth(11)
    @ExcelProperty("货号")
    @ApiModelProperty(value = "货号")
    private String productCode;

    @ColumnWidth(11)
    @ExcelProperty("商品名")
    @ApiModelProperty(value = "商品名")
    private String productName;

    @ColumnWidth(11)
    @ExcelProperty("通用名")
    @ApiModelProperty(value = "通用名")
    private String genericName;

    @ColumnWidth(11)
    @ExcelProperty("产地")
    @ApiModelProperty(value = "产地")
    private String producingArea;

    @ColumnWidth(11)
    @ExcelProperty("规格")
    @ApiModelProperty(value = "规格")
    private String standard;

    @ColumnWidth(11)
    @ExcelProperty("单位")
    @ApiModelProperty(value = "单位")
    private String unit;

    @ColumnWidth(11)
    @ExcelProperty("批准文号")
    @ApiModelProperty(value = "批准文号")
    private String approvalNo;

    @ColumnWidth(11)
    @ExcelProperty("生产单位")
    @ApiModelProperty(value = "生产单位")
    private String produceFactory;

    @ColumnWidth(11)
    @ExcelProperty("剂型")
    @ApiModelProperty(value = "剂型")
    private String dosageForm;

    @ColumnWidth(11)
    @ExcelProperty("有效期至")
    @ApiModelProperty(value = "有效期至")
    private String expiryDate;

    @ColumnWidth(11)
    @ExcelProperty("生产日期")
    @ApiModelProperty(value = "生产日期")
    private String produceDate;

    @ColumnWidth(11)
    @ExcelProperty("批号")
    @ApiModelProperty(value = "批号")
    private String batchNo;

    @ColumnWidth(11)
    @ExcelProperty("批次单号")
    @ApiModelProperty(value = "批次单号")
    private String lotNo;

    @ColumnWidth(11)
    @ExcelProperty("是否处方药0否1是")
    @ApiModelProperty(value = "是否处方药0否1是")
    private Integer isRxDrug;

    @ColumnWidth(11)
    @ExcelProperty("含麻黄碱标志0否1是")
    @ApiModelProperty(value = "含麻黄碱标志0否1是")
    private Integer isEphedrine;

    @ColumnWidth(11)
    @ExcelProperty("含特药品种0否1是")
    @ApiModelProperty(value = "含特药品种0否1是")
    private Integer isGmp;

    @ColumnWidth(11)
    @ExcelProperty("是否拆零0否1是")
    @ApiModelProperty(value = "是否拆零0否1是")
    private Integer isSplitDrug;

    @ColumnWidth(11)
    @ExcelProperty("数量")
    @ApiModelProperty(value = "数量")
    private BigDecimal saleCount;

    @ColumnWidth(11)
    @ExcelProperty("成本价")
    @ApiModelProperty(value = "成本价")
    private BigDecimal costPrice;

    @ColumnWidth(11)
    @ExcelProperty("成本金额")
    @ApiModelProperty(value = "成本金额")
    private BigDecimal costAmount;

    @ColumnWidth(11)
    @ExcelProperty("折前单价（销售价）")
    @ApiModelProperty(value = "折前单价（销售价）")
    private BigDecimal retailPrice;

    @ColumnWidth(11)
    @ExcelProperty("折前金额")
    @ApiModelProperty(value = "折前金额")
    private BigDecimal retailAmount;

    @ColumnWidth(11)
    @ExcelProperty("折后单价")
    @ApiModelProperty(value = "折后单价")
    private BigDecimal memberPrice;

    @ColumnWidth(11)
    @ExcelProperty("折后金额")
    @ApiModelProperty(value = "折后金额")
    private BigDecimal memberAmount;

    @ColumnWidth(11)
    @ExcelProperty("折扣")
    @ApiModelProperty(value = "折扣")
    private BigDecimal discount;

    @ColumnWidth(11)
    @ExcelProperty("折扣金额")
    @ApiModelProperty(value = "折扣金额")
    private BigDecimal discountFee;


}
